package com.example.demo.config;

import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.OpenAPI;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: TODO
 * @Author Mr.Tang
 */
@Configuration
public class OpenApiConfig {
    @Bean
    public OpenAPI springOpenAPI() {
        // 访问路径：http://localhost:端口号/swagger-ui/index.html
        return new OpenAPI().info(new Info()
                .title("后端接口")
                .description("后端接口测试")
                .version("1.0.0"));
    }
}
